package com.yjt.gcss.gddw.common.dao;

import java.util.ArrayList;
import java.util.Collection;

import org.hibernate.criterion.Order;
import org.springframework.stereotype.Service;

import com.yjt.common.hibernate.base.AbstractDaoImpl;
import com.yjt.common.hibernate.base.DaoException;
import com.yjt.gcss.gddw.common.bean.domain.BtOrgBankMapping;
import com.yjt.gcss.gddw.common.bean.domain.BtOrgBankMappingId;

@Service(BtOrgBankMappingDao.BEAN_PACKAGE_NAME)
public class BtOrgBankMappingDao extends AbstractDaoImpl{
	public static final String BEAN_PACKAGE_NAME = "com.yjt.gcss.gddw.common.dao.BtOrgBankMappingDao";
	public BtOrgBankMappingDao() {
		
	}
	
	public BtOrgBankMapping getBeanById(BtOrgBankMappingId id) throws DaoException {
		return ( BtOrgBankMapping) getBeanById(BtOrgBankMapping.BEAN_PACKAGE_NAME, id, false);
	}    
	
	public BtOrgBankMapping getBeanByIdForUpdate(String id) throws DaoException {
		return (BtOrgBankMapping) getBeanById(BtOrgBankMapping.BEAN_PACKAGE_NAME, id, true);
	}

	@SuppressWarnings("rawtypes")
	public Collection getAll() throws DaoException {
		return getAll(BtOrgBankMapping.BEAN_PACKAGE_NAME);
	}

	@SuppressWarnings("rawtypes")
	public BtOrgBankMapping getBeanByParams(String hqlName,ArrayList paraList) throws DaoException{
		return (BtOrgBankMapping) getProtoBeanByParams(hqlName,paraList);
	}


	  
	public BtOrgBankMapping setOrder(Order order){
		return (BtOrgBankMapping)super.addOrder(order);
	}


}
